// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** add POST /api/equipment/info/add */
export async function addUsingPost(body: API.EquipmentInfoDTO, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/equipment/info/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** delete POST /api/equipment/info/delete */
export async function deleteUsingPost(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/equipment/info/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getDetail POST /api/equipment/info/detail */
export async function getDetailUsingPost(
  body: API.EquipmentInfoDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseEquipmentInfoDTO_>('/api/equipment/info/detail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** list POST /api/equipment/info/querylist */
export async function listUsingPost(
  body: API.EquipmentInfoQueryDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageResultEquipmentInfoDTO_>('/api/equipment/info/querylist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** update POST /api/equipment/info/update */
export async function updateUsingPost(
  body: API.EquipmentInfoDTO,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/equipment/info/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
